package com.khshop.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品
 * </p>
 *
 * @author zhaoyang
 * @since 2020-10-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("w_product")
@ApiModel(value="Product对象", description="商品")
public class Product implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "商品名")
    private String name;

    @ApiModelProperty(value = "价格")
    private Float price;

    @ApiModelProperty(value = "分类")
    private Long typeid;

    @ApiModelProperty(value = "是否在售")
    private Boolean inuse;

    @ApiModelProperty(value = "库存量")
    private Integer stockcount;

    @ApiModelProperty(value = "图片地址")
    private String imgs;

    @ApiModelProperty(value = "规格")
    private String sku;

    @ApiModelProperty(value = "参数")
    private String spu;

    @ApiModelProperty(value = "浏览次数")
    private Integer clicknums;

    @ApiModelProperty(value = "销量")
    private Integer salenums;


}
